package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.PopGoodsMapper;
import com.rongke.model.NewGoods;
import com.rongke.model.PopGoods;
import com.rongke.service.PopGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @PopGoodsServiceImpl
 * @人气推荐ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class PopGoodsServiceImpl extends ServiceImpl<PopGoodsMapper, PopGoods> implements PopGoodsService {

    @Autowired
    private PopGoodsMapper popGoodsMapper;

    /**
     * @根据条件查找人气推荐
     * @param popGoods
     * @return
     */
    @Override
    public List<PopGoods> selectByCondition(PopGoods popGoods) {
        return popGoodsMapper.selectByCondition(popGoods);
    }

    @Override
    public List<PopGoods> selectPopGoodsList(Map map) {
        return popGoodsMapper.selectPopGoodsList(map);
    }
}
